package com.ruoyi.common.core.enums;

/**
 * 供应商渠道枚举
 */
public enum SupplierChannelEnum {
    HY("HY","鸿源");

    private final String channel;
    private final String name;

    SupplierChannelEnum(String channel, String name) {
        this.channel = channel;
        this.name = name;
    }

    public String getChannel() {
        return channel;
    }

    public String getName() {
        return name;
    }

    public static String getNameByChannel(String channel)
    {
        for (SupplierChannelEnum item : SupplierChannelEnum.values()) {
            if (item.getChannel().equals(channel)) {
                return item.getName();
            }
        }
        return "";
    }
}
